package cn.jhz.learn.blog.vo;

import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import java.util.Optional;

@Setter
public class SubfieldPageView extends PageView{
    @Length(min = 0, max = 15, message = "博客名无效!")
    private String blog_name;

    public Optional<String> getBlog_name() {
        return Optional.ofNullable(this.blog_name);
    }
}
